<?php
function route_class()
{
    return str_replace('.', '-', Route::currentRouteName());
}

if (!function_exists('big_number')) {
    function big_number($number, $scale = 2)
    {
        return new \Moontoast\Math\BigNumber($number, $scale);
    }
}
if (!function_exists('round_number')) {
    function round_number(int $number)
    {
        for ($i = 0; $i < $number; $i++) {
            yield $i;
        }
    }
}
